<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/



Route::get('/','HomeController@index');
// 404 页面
Route::get('/404', function () {
   abort(404);
});

// 跳到注册的页面
Route::get('register','RegisterController@register');
// 跳转到登录页面
Route::get('sign','RegisterController@sign');
// 主动成功之后的提示页面
Route::get('activate','RegisterController@activate');
// 邮件激活方法
Route::get('activates','RegisterController@activates');
//注册页面的数据处理
Route::post('register','RegisterController@doregister');
	// 注册页面检测邮箱
	Route::get('/homeuseremail','RegisterController@homeuseremail');
	// 注册页面检测手机号
	Route::get('/homeusertel','RegisterController@homeusertel');

// 前台登录
	Route::Controller('/home/login','LoginController');

// 创建路由组
	Route::group(['middleware'=>'login'],function(){
		//隐式路由 后台控制器
		Route::Controller('/admin/','AdminController');
		// 后台用户管理路由
		Route::Controller('/admin/user','AdminUserController');
			// 用户添加页面ajax检测
			Route::get('/test','AdminUserController@test');
			// 用户首页删除功能ajax
			Route::get('/del','AdminUserController@del');
		Route::Controller('/admin/cate','CateController');	
			// 导航添加页面栏目名称ajax检测
			Route::get('/catetestone','CateController@catetestone');
			// 导航添加页面栏目目录ajax检测
			Route::get('/catetesttwo','CateController@catetesttwo');
			// 导航添加页面栏目图片ajax发送
			Route::get('/catetestimage','CateController@catetestimage');
		Route::Controller('/admin/content','ContentController');		
		

		});
		// 后台登录
			Route::Controller('/admin/login','LoginController');	
		//显示登录页面的验证码插件路由
			Route::get('auth/geetest','Auth\AuthController@getGeetest'); 